package net.zcy.springbootmybatis.entity;

import net.zcy.springbootmybatis.enums.UserSexEnum;

import java.io.Serializable;

/**
 * 用户信息表
 */
public class UserEntity implements Serializable {

    private static final long serialVersionUID = 6136839931793438944L;

    private Long id;
    private String userName;
    private String password;
    private UserSexEnum userSex;
    private String nickName;

    public UserEntity() {
    }

    public UserEntity(Long id, String userName, String password, UserSexEnum userSex, String nickName) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.userSex = userSex;
        this.nickName = nickName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public UserSexEnum getUserSex() {
        return userSex;
    }

    public void setUserSex(UserSexEnum userSex) {
        this.userSex = userSex;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", userSex=" + userSex +
                ", nickName='";
    }
}
